%option noyywrap

%{

#include<iostream>

#include<cstdio>

#include<set>

using namespace std;    

int num_appear=0;

set<long long>a;

%}  
name NAME$

number [0-9]
number9 ^{number}{9}

digit {number}+(\.{number}+)?

%%  

{name} {printf("ZX");}
{number9} {printf("201492162");}

{digit} {
	double s=atof(yytext);
	double temp = s*2+201492162;
        temp = (long long int)(temp+0.5)>(long long int)temp?(long long int)temp+1:(long long int)temp;
	cout<<temp;
	num_appear++;
	a.insert(temp);

	}

. 	{cout<<yytext;}
    
%%  

int main()  

{  
    yylex();  
    
	cout<<"Appear Times:"<<num_appear<<"  "<<"Times left without the same:"<<a.size()<<endl;


    
	return 0;   
 
}  

